package basics;

import java.io.Serializable;

public class InheritanceHierarchy implements Serializable {
    public static void main(String[] args) {
        System.out.println(Serializable.class.isAssignableFrom(InheritanceHierarchy.class));
        System.out.println(Serializable.class.isInstance(InheritanceHierarchy.class));
        System.out.println(Object.class.isInstance(int.class));
        System.out.println(int.class.getSuperclass());
        System.out.println(Class.class.isInstance(Class.class));
        System.out.println(Object.class.isInstance(Object.class));
        System.out.println(Object.class.isInstance(Class.class));
        System.out.println(String.class.isInstance(String.class));
        System.out.println(InheritanceHierarchy.class instanceof Class);


    }
}
